package com.atguigu.gulimall.product.entity.vo.web;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catalog2Vo {

    private String catalog1Id; //当前二级节点的父节点
    private List<Catalog3Vo> catalog3List;//当前二级节点的子节点
    private String id;//当前二级节点的id
    private String name;//当前二级节点的name

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catalog3Vo {
        private String catalog2Id;//当前三级节点的父节点
        private String id;//当前三级节点的id
        private String name;//当前三级节点的name
    }
}
